From 697cbac776afd42f8ed70d62842f99bc5cd09801 Mon Sep 17 00:00:00 2001 From: Ceph Maintainers Date: Wed, 7 Jun 2017 09:39:39 +0100 Subject: [PATCH] fix-cycles-arch Gbp-Pq: Name fix-cycles-arch.patch --- src/common/Cycles.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/Cycles.cc b/src/common/Cycles.cc index 656f08b40..4d04eed9e 100644 --- a/src/common/Cycles.cc +++ b/src/common/Cycles.cc @@ -57,6 +57,10 @@ void Cycles::init() if (rdtsc() == 0) return; + // Skip initialization if rtdsc is not implemented + if (rdtsc() == 0) + return; + // Compute the frequency of the fine-grained CPU timer: to do this, // take parallel time readings using both rdtsc and gettimeofday. // After 10ms have elapsed, take the ratio between these readings. -- 2.30.2